<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>   
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<style type="text/css">
	body{
			background-image: url("../../images/bg.gif");
		}
	.tHead{
		background-color: #A6FFA6;
	}
</style>
<title>试卷预览</title>
</head>
<body>
<table width="100%" >
	<tr>
		<td align="right" style="font: 10em; width: 60%"><b><s:property value="%{name}"/></b></td>
		<td align="right"><font size="2" >总共 <s:property value="%{queMap.get('单选题').size()+queMap.get('多选题').size()}"/>题 共 <s:property value="%{(queMap.get('单选题').size()+queMap.get('多选题').size())*2}"/> 分</font></td>
	</tr>
	<tr>
		<td colspan="2" align="left" style="border-top-style: groove;"><font size="2"><s:property value="%{name}"/></font></td>
	</tr>
</table>
<s:if test="%{queMap.get('单选题').size()!=0}">
	<div class="tHead">
		<table style="padding:5px;cursor:pointer;vertical-align: middle;width: 100%;margin-bottom: 2px;">
			<tr>
				<td align="left" colspan="2">一.单选题</td>
			</tr>
		</table>
	</div>
	<div>
		<s:iterator value="%{queMap.get('单选题')}" status="st" id="que">
			<s:property value="#st.count"/>.<s:property value="#que.title"/>
			<br/>
			<s:iterator value="#que.toMapOption()" id="option">
			<div class="radio">
			<input name="dan${que.id}" type="radio" value="${option.key}"/>
			<i>${option.key}</i>.${option.value}
			</div>
			</s:iterator>
		</s:iterator>
		</div>
	</s:if>
<br/>
<s:if test="%{queMap.get('多选题').size()!=0}">
	<div class="tHead">
		<table style="padding:5px;cursor:pointer;vertical-align: middle;width: 100%;margin-bottom: 2px;">
			<tr>
				<td align="left" colspan="2">二.多选题</td>
			</tr>
		</table>
	</div>
	<div>
		<s:iterator value="%{queMap.get('多选题')}" status="st" id="que">
			<s:property value="#st.count"/>.<s:property value="#que.title"/>
			<br/>
			<s:iterator value="#que.toMapOption()" id="option">
			<div class="checkbox">
			<input name="dan${que.id}" type="checkbox" value="${option.key}"/>
			<i>${option.key}</i>.${option.value}
			</div>
			</s:iterator>
		</s:iterator>
		</div>
	</s:if>
	<button onclick="history.go(-1)">返回</button>
</body>
</html>